<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>机构-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="js/DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
<style>
.clearfix li{
	margin-top:0px;
}
</style>
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody">
    <div class="container">
        <!--div class="m_sort inst_sort">
            <ul class="clearfix">
                <?php foreach ($oSysType as $key => $v):?>
                <li style="width:140px;"><a href="<?=_create_url('artist', array_merge($arrParam, array('type'=>$key)) )?>" title="<?=$v?>"<?php if(!empty($arrParam['type']) && $arrParam['type']==$key) echo ' class="curr"';?>><?=$v?></a></li>
                <?php endforeach;?>
            </ul>
        </div-->
       
        <div class="m_filter"  style="margin-top: 10px;">
            <div class="filterBox">
            	
                <div class="values"><span class="label">地区：</span>
                        <p class="clearfix">
                            <a <?php if(empty($arrParam['city'])):?> class="curr"<?php endif?> href="<?php if(!empty($arrParam['city'])){$tmp_arrParam = $arrParam; unset($tmp_arrParam['city']); echo _create_url('artist', $tmp_arrParam );}?>" title="不限">不限</a>
                        <?php $flag=1;if (!empty($oCity)):  
                        foreach ($oCity as $city) : ?>
                            <a href="<?php echo _create_url('artist', array_merge($arrParam, array('city'=>$city['name'])))?>" title="地区" <?php if(!empty($arrParam['city']) && ($arrParam['city'] == $city['name'])) {$flag = 2;echo ' class="curr"';}?>><?php echo $city['name']?></a>
                        <?php  endforeach; endif?>
                        <a href="javascript:void(0);" class="city_input_hover"><input type="text" class="city_input" value="<?=$flag==1&&isset($arrParam['city'])?$arrParam['city']:''?>"/>&nbsp;<button class="J_SortbarPriceSubmit btn city_button" data-url="<?php $tmp_arrParam = $arrParam; unset($tmp_arrParam['city']); echo _create_url('artist', $tmp_arrParam );?>" type="button">确定</button></a>
                		</p>
                </div>
                <div class="values"><span class="label">排序：</span>
                    <p class="clearfix">
                     <a href="<?=_create_url('artist', array_merge($arrParam, array('orderby'=>'1')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='1') echo ' class="curr"';?>>按时间</a>
                        <a href="<?=_create_url('artist', array_merge($arrParam, array('orderby'=>'2')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='2') echo ' class="curr"';?>>按关注度</a>
                        <a href="<?=_create_url('artist', array_merge($arrParam, array('orderby'=>'3')) )?>" <?php if(!empty($arrParam['orderby']) && $arrParam['orderby']=='3') echo ' class="curr"';?>>订单量</a></p>
                </div>
            </div>
            <div class="control_bar">
                <a class="button_less spred" href="javascript:void(0);">更多选项<span class="ifont"></span></a>
            </div>
        </div>
        
    </div>
    <div class="insti inst_tion">
        <div class="container">
            <div class="our_insti women">
                <ul class="clearfix">
                    <?php foreach ($list['rows'] as $key => $a): ?>
                    <li>
                        <a href="/i/index/<?=$a['id']?>" target="_blank" title="<?=$a['company']?>">
                            <img src="<?=_get_companylogo_url($a['showimg']);?>"/>
                            <span class="ins_no_hover">
                                <p><?php echo $a['nickname']?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $a['city']?></p>
                                <p><?php if ($a['usertype'] == 4) echo '摄影师';elseif ($a['usertype'] == 5) echo '化妆师';else echo $a['detail_info']['type_str'];?><em class="fr">点击/<?php echo $a['num_info']['visitnum']?$a['num_info']['visitnum']:0?></em></p>
                            </span>
                        </a>
                    </li>
                    <?php endforeach;?>
                </ul>
            </div>
            <br><br>
            <div class="page">
                <?=$list['pages']?>
            </div><!--page-->
            <br><br>
        </div>
    </div>
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>common.js"></script>
<script>
$(function(){
	$(".city_input_hover").hover(function(){
		$(".city_button").show();
	},function(){
		$(".city_button").hide();
	});
	$(".city_input").focus(function(){
		$(".city_input").css("border","solid 1px #dfdfdf");
	});
	//输入城市搜索
	$(".city_button").click(function(){
		var city = $.trim($(".city_input").val());
		if(city == '')
		{
			$(".city_input").css("border","1px solid red");
			return false;
		}
		var url = $(this).attr("data-url");
		if(url.indexOf("?") > 0)
		{
			url += "&city="+city;
		}
		else
		{
			url += "?city="+city;
		}
		window.location.href=url;
	});
});
</script>
</html>